package com.xinke.module.system.model.vo.notice;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 通知公告新增/修改 Request VO")
@Data
public class NoticeSaveReqVO {

    @Schema(description = "公告ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27723")
    private Long noticeId;

    @Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "公告标题不能为空")
    private String noticeTitle;

    @Schema(description = "公告内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "公告内容不能为空")
    private String noticeContent;

    @Schema(description = "公告类型（1通知 2公告）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "公告类型（1通知 2公告）不能为空")
    private Integer noticeType;

    @Schema(description = "公告状态（1正常 0关闭）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "公告状态（1正常 0关闭）不能为空")
    private Integer noticeStatus;

}